<template>
  <div id="subpage">

    <el-col :span="24" class="warp-breadcrum">
      <el-breadcrumb separator="/">
        <el-breadcrumb-item><b>小程序</b></el-breadcrumb-item>
        <el-breadcrumb-item to="/mini_app/e_book">电子刊管理</el-breadcrumb-item>
        <el-breadcrumb-item :to="{path:'/mini_app/e_book_price',query:{smallLesson_name:smallLesson_name,smallLesson_id:smallLesson_id}}">阅读码价格管理</el-breadcrumb-item>
        <el-breadcrumb-item>{{smallLesson_id ? '修改' : '添加'}}阅读码数量价格</el-breadcrumb-item>
      </el-breadcrumb>
    </el-col>

    <div class="content">
      <div class="xcx-head">
        <span class="title">{{smallLesson_id ? '修改' : '添加'}}阅读码数量价格详情页</span>
      </div>
      <div class="xcx-content">
        <el-form ref="form_data" :model="form_data" :rules="rules" label-width="140px" style="width: 80%;">



          <el-form-item label="价格：" prop="price">
            <el-input class="w400" v-model="form_data.price" placeholder="请输入价格"></el-input>
          </el-form-item>
          <el-form-item label="数量：" prop="num">
            <el-input class="w400" v-model="form_data.num" placeholder="请输入数量"></el-input>
          </el-form-item>


          <el-form-item label="状态：" prop="status">
            <el-radio v-model="form_data.status" label="1">开启</el-radio>
            <el-radio v-model="form_data.status" label="2">关闭</el-radio>
          </el-form-item>


          <el-form-item class="mar_T_50">
            <el-button type="primary" @click="save">保存</el-button>
            <el-button @click="back">返回</el-button>
          </el-form-item>
        </el-form>
      </div>
    </div>
  </div>
</template>
<script src="../../../static/js/mini_app/e_book_price_detail.js"></script>

<style scoped>

</style>
